import 'package:boss/ui/page/commodity/categories/page/plusCommodityMode/page/plusCommodityByFormField/page/skuSetting/provider/sku_provider.dart';
import 'package:boss/ui/widget/button/fixed_bottom_btn.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

class SkuFooter extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return FixedBottomBtn(
      title: '保 存',
      onTap: () {
        var skuProvider = Provider.of<SkuProvider>(context, listen: false,);
        var flag = skuProvider.check();
        if (flag) {
          Navigator.pop(context, skuProvider.skus);
        }
      },
    );
  }
}
